package com.zz.inventory.feign;

import feign.Feign;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
@Configuration
public class FeignDirectCallConfig {
    @Bean
    @Primary
    public Feign.Builder feignBuilder() {
        return Feign.builder()  // 使用原生 Feign，跳过 Spring Cloud 增强
                .retryer(Retryer.NEVER_RETRY);  // 禁用重试
    }
}
